package com.shensi.appCollect.service.impl;

import com.shensi.appCollect.dao.AppUserSuperDetailMapper;
import com.shensi.appCollect.pojo.AppUserSuperDetail;
import com.shensi.appCollect.service.AppUserSuperDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author qujia
 * @date 2021-11-30
 */
@Service
public class AppUserSuperDetailServiceImpl implements AppUserSuperDetailService
{
    @Autowired
    private AppUserSuperDetailMapper appUserSuperDetailMapper;

    @Override
    public AppUserSuperDetail selectAppUserSVIPInfoByCurrentTime(AppUserSuperDetail appUserSuperDetail) {
        return appUserSuperDetailMapper.selectAppUserSVIPInfoByCurrentTime(appUserSuperDetail);
    }

    /**
     * 查询超级会员开通记录
     *
     * @param superDetailId 超级会员开通记录ID
     * @return 超级会员开通记录
     */
    @Override
    public AppUserSuperDetail selectAppUserSuperDetailById(Long superDetailId)
    {
        return appUserSuperDetailMapper.selectAppUserSuperDetailById(superDetailId);
    }

    /**
     * 查询超级会员开通记录列表
     *
     * @param appUserSuperDetail 超级会员开通记录
     * @return 超级会员开通记录
     */
    @Override
    public List<AppUserSuperDetail> selectAppUserSuperDetailList(AppUserSuperDetail appUserSuperDetail)
    {
        return appUserSuperDetailMapper.selectAppUserSuperDetailList(appUserSuperDetail);
    }

    /**
     * 新增超级会员开通记录
     *
     * @param appUserSuperDetail 超级会员开通记录
     * @return 结果
     */
    @Override
    public int insertAppUserSuperDetail(AppUserSuperDetail appUserSuperDetail)
    {
        return appUserSuperDetailMapper.insertAppUserSuperDetail(appUserSuperDetail);
    }

    /**
     * 修改超级会员开通记录
     *
     * @param appUserSuperDetail 超级会员开通记录
     * @return 结果
     */
    @Override
    public int updateAppUserSuperDetail(AppUserSuperDetail appUserSuperDetail)
    {
        return appUserSuperDetailMapper.updateAppUserSuperDetail(appUserSuperDetail);
    }

    /**
     * 批量删除超级会员开通记录
     *
     * @param superDetailIds 需要删除的超级会员开通记录ID
     * @return 结果
     */
    @Override
    public int deleteAppUserSuperDetailByIds(Long[] superDetailIds)
    {
        return appUserSuperDetailMapper.deleteAppUserSuperDetailByIds(superDetailIds);
    }

    /**
     * 删除超级会员开通记录信息
     *
     * @param superDetailId 超级会员开通记录ID
     * @return 结果
     */
    @Override
    public int deleteAppUserSuperDetailById(Long superDetailId)
    {
        return appUserSuperDetailMapper.deleteAppUserSuperDetailById(superDetailId);
    }

}
